<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>阿里百秀的后台登录</title>
  <link rel="stylesheet" href="../assets/vendors/bootstrap/css/bootstrap.css">
  <link rel="stylesheet" href="../assets/css/admin.css">
</head>
<body>
  <div class="login">
      <form class="login-wrap" action="islogin.php" method="post">
      <img class="avatar" src="../assets/img/default.png">
      <!-- 有错误信息时展示 -->
      <?php
      $error=isset($_GET['error'])?$_GET['error']:0;
      if ($error==1)
      {
      ?>
      <div class="alert alert-danger">
        <strong>错误！</strong> 用户名错误！
      </div>
      <?php
      }
      ?>
      <?php      
      if ($error==2)
      {
      ?>
      <div class="alert alert-danger">
        <strong>错误！</strong> 密码错误！
      </div>
      <?php
      }
      ?>
      <div class="form-group">
        <label for="email" class="sr-only">邮箱</label>
        <input id="email" type="email" class="form-control" placeholder="邮箱" name="email" autofocus>
      </div>
      <div class="form-group">
        <label for="password" class="sr-only">密码</label>
        <input id="password" type="password" class="form-control" placeholder="密码" name="password">
      </div>      
      <input class="btn btn-primary btn-block" type="submit" value="登录" />
    </form>
  </div>
</body>
</html>
